package shayu.auth.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
public class WeboOAuth2Controller {

    @GetMapping("/oauth2/weibo/success")
    public String weibo(@RequestParam("code")String coed )throws Exception{

        HashMap<String, String> map = new HashMap<>();

        return "redirect:localhost:8053/index.html";

    }
}
